<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" />
  <title>Login</title>
  
  <style type="text/css">
    @import "http://o.aolcdn.com/dojo/1.0/dijit/themes/tundra/tundra.css";
    @import "http://o.aolcdn.com/dojo/1.0/dojo/resources/dojo.css"
  </style>
  <script type="text/javascript" src="http://o.aolcdn.com/dojo/1.0/dojo/dojo.xd.js"  djConfig="parseOnLoad: true"></script>
  <script type="text/javascript">
    dojo.require("dojo.parser");
    dojo.require("dijit.form.Form");
    dojo.require("dijit.form.Button");
    dojo.require("dijit.form.ValidationTextBox");
  </script>
</head>
<body class="tundra">

<f:view>  
  <h:form>
  
     
    <!-- jsfc="h:inputText" -->
    <input type="text" name="username" class="medium" value="#{s.username}"
      dojoType="dijit.form.ValidationTextBox"
      regExp="[\w]+"
      required="true"
      invalidMessage="Invalid Non-Space Text." />
                    

    <input type="password" name="password" class="medium" value="#{s.password}"
      dojoType="dijit.form.ValidationTextBox"
      regExp="[\w]+"
      required="true"
      invalidMessage="Invalid Non-Space Text." />
                    
    <h:commandButton action="#{s.login}" value="Login" dojoType="dijit.form.Button" />                  
  </h:form>
</f:view>

</body>
</html>